# coding:utf-8
# 作者：理想国真恵玩
import numpy as np

# 行列相同
arr1 = np.arange(10).reshape([2, 5])
arr2 = np.arange(10, 20).reshape([2, 5])
print(arr1)
print(arr2)
print(arr1 + arr2)
print('-' * 33)

# 行相同，列被扩展复制
arr3 = np.arange(10, 15)
print(arr1)
print(arr3)
print(arr1 + arr3)
print('-' * 33)

# 列相同，行被扩展复制
arr4 = np.arange(10, 12).reshape([2, 1])
print(arr1)
print(arr4)
print(arr1 + arr4)
